package com.wlts.wzy.DYOrderModule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wlts.wzy.Base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 快手订单表
 * </p>
 *
 * @author zhiyong
 * @since 2021-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="DyOrders对象", description="快手订单表")
public class DyOrders extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String shopId;

    @ApiModelProperty(value = "父订单ID")
    private String pid;

    @ApiModelProperty(value = "订单号")
    private String orderId;

    @ApiModelProperty(value = "子订单状态 2待发货  3已发货 6退货中-用户申请  具体请看 https://op.jinritemai.com/docs/api-docs/15/55 第五")
    private Long finalStatus;

    @ApiModelProperty(value = "卖家昵称")
    private String openId;

    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "关联ID")
    private Long outProductId;

    @ApiModelProperty(value = "关联skuId")
    private Long outSkuId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "头图，商品主图第一张")
    private String productPic;

    @ApiModelProperty(value = "该子订单所购买的sku的数量")
    private Integer comboNum;

    @ApiModelProperty(value = "该子订单所购买的sku的售价")
    private Integer comboAmount;

    @ApiModelProperty(value = "该子订单购买的商品的编码 code")
    private String code;

    @ApiModelProperty(value = "该子订单所属商品规格描述")
    private String specDesc;

    @ApiModelProperty(value = "收件人地址")
    private String postAddr;

    @ApiModelProperty(value = "收件人手机号")
    private String postTel;

    @ApiModelProperty(value = "买家备注")
    private String buyerWords;

    @ApiModelProperty(value = "收件人姓名")
    private String postReceiver;

    @ApiModelProperty(value = "物流公司ID 各ID对应的物流公司")
    private Integer logisticsId;

    @ApiModelProperty(value = "物流单号")
    private String logisticsCode;

    @ApiModelProperty(value = "发货时间。未发货时为0")
    private Long logisticsTime;

    @ApiModelProperty(value = "发货时间。未发货时为0，已发货返回秒级时间戳")
    private Long receiptTime;

    @ApiModelProperty(value = "支付类型 (0：货到付款，1：微信，2：支付宝）")
    private Long payType;

    @ApiModelProperty(value = "支付时间 (pay_type为0货到付款时, 此字段为空)，例如\"2018-06-01 12:00:00\"")
    private String payTime;

    @ApiModelProperty(value = "子订单实付金额（不包含运费）")
    private Long totalAmount;

    @ApiModelProperty(value = "催单次数")
    private Integer urgeCnt;

    @ApiModelProperty(value = "推送lm状态 0未推送 1已推送")
    private Integer putLmStatus;

    @ApiModelProperty(value = "lm发货状态 0未发货 1已发货")
    private Integer sendStatus;

    @ApiModelProperty(value = "本地发货快递公司名称")
    private String expressName;

    @ApiModelProperty(value = "本地发货快递单号")
    private String expressNo;

    @ApiModelProperty(value = "本地发货快递公司code")
    private Integer expressCode;

    @ApiModelProperty(value = "是不是平台推送商品的订单 0确定 1是 2不是")
    private Integer selfOrder;

    @ApiModelProperty(value = "订单号，对外统⼀使⽤此ID做主键操作")
    private String lmOrderId;

    @ApiModelProperty(value = "淘宝订单号")
    private String tbOrderId;

    @ApiModelProperty(value = "lm错误报文")
    private String lmErrMsg;

    @ApiModelProperty(value = "ks报文")
    private String ksErrMsg;

    @ApiModelProperty(value = "推送物流状态 0未推送，1已经推送 2推送失败")
    private Integer putExpressStatus;

    @ApiModelProperty(value = "确定收货状态 0未确定 1已确定 2确定失败")
    private Integer putLmConfirmStatus;

    @ApiModelProperty(value = "lm退款状态 0未申请 1已申请 2已退款 3拒绝退款 4申请失败 5已取消 6已提交物流 7提交物流失败")
    private Integer lmRefundStatus;

    @ApiModelProperty(value = "lm退款返回信息")
    private String lmRefundMsg;

    @ApiModelProperty(value = "lm平台订单状态 0未知 1=未发货 -> 等待卖家发货 2=已发货 -> 等待买家确认收货 3=已收货 -> 交易成功 4=已经退货 -> 交易失败 5=部分收货 -> 交易成功 6=部分发货 中 8=还未创建物流订单\",")
    private Integer lmOrderStatus;

    @ApiModelProperty(value = "1 仅退款，3 退货 退款")
    private Integer lmBizClaimType;


}
